﻿using Synthesize.BaseSet.ServiceInterface.Dtos.Authority.Role;
using Library.Common.Model;
using System.Threading.Tasks;
using System.Collections.Generic;
using System;
using Library.Core.Domain.Repository;

namespace Synthesize.BaseSet.ServiceInterface.Query.Authority
{
    /// <summary>
    /// 角色查询接口
    /// </summary>
    public interface IRoleQueryService
    {
        /// <summary>
        /// 根据角色名称获取信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<BaseApiResult<PageData<GetRoleListOutput>>> GetRolePageList(GetRoleListInput input);

        /// <summary>
        /// 获取所有角色列表信息
        /// </summary>
        /// <returns></returns>
        Task<BaseApiResult<List<GetRoleListOutput>>> GetAllList();

        /// <summary>
        /// 根据用户Id获取所属角色
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="readOnly"></param>
        /// <returns></returns>
        Task<List<GetRoleListOutput>> GetRoleByUserId(Guid userId, bool readOnly = true);

    }
}
